<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <link rel="stylesheet" href="2.饿了么.css">
</head>
<body>
    <div id="app">
         <div class="ss">
            <input type="text" placeholder="输入商家，商品名称">
         </div>
         <div class="picture">
            <img src="2.img.jpg" alt="">
         </div>
         <h2>猜你喜欢</h2>
         
         <div class="zhsx">
            <div :class="{active: currentIndex == index }" @click="handleClick(index)" class="btn" v-for="(item,index) in list">
                <div class="name">{{item.name}}</div>
            </div>

         </div>
        <div class="hot1">
            <div class="hot" v-for="(item,index) in hot">{{item.name1}}</div>
        </div>
        <!-- 商品列表图片 -->
        <div class="block" v-for="(item,index) in arr2">
            <img :src="item.pic" alt="">
            <div class="name"> {{ item.name }} </div>
        <!-- 店铺信息 -->
            <div class="dianpu">
                <div class="title">{{item.title}}</div>
              <div class="haop">
                <div class="wjx">☆{{item.wjx}}</div>
                <div class="num">月售{{item.num}}</div>
              </div>
                 <div class="dianpu1">
                    <div class="price">起送{{item.price}}</div>
                    <div class="cond">远距离配送￥{{item.cond}}</div>
                    <div class="time">{{item.time}}分钟</div>
                    <div class="juli">{{item.juli}}km</div>
                 </div>
            </div>
          
        </div>
        <!-- 底部 -->

      <div class="dibu">
        <div :class="{active1: currentIndex1 == index }" @click="handleClick1(index)" class="btn" v-for="(item,index) in list2">
            <!-- <img src="" alt=""> -->
            <div class="name">{{item.name2}}</div>
        </div>
      </div>

        
         
    </div>
</body>
</html>
<script src="vue-2.5.21.js"></script>
<script src="2.饿了么.js"></script>
